\documentclass[twoside]{book}

% Packages required by doxygen
\usepackage{fixltx2e}
\usepackage{calc}
\usepackage{doxygen}
\usepackage[export]{adjustbox} % also loads graphicx
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{makeidx}
\usepackage{multicol}
\usepackage{multirow}
\PassOptionsToPackage{warn}{textcomp}
\usepackage{textcomp}
\usepackage[nointegrals]{wasysym}
\usepackage[table]{xcolor}

% Font selection
\usepackage[T1]{fontenc}
\usepackage[scaled=.90]{helvet}
\usepackage{courier}
\usepackage{amssymb}
\usepackage{sectsty}
\renewcommand{\familydefault}{\sfdefault}
\allsectionsfont{%
  \fontseries{bc}\selectfont%
  \color{darkgray}%
}
\renewcommand{\DoxyLabelFont}{%
  \fontseries{bc}\selectfont%
  \color{darkgray}%
}
\newcommand{\+}{\discretionary{\mbox{\scriptsize$\hookleftarrow$}}{}{}}

% Page & text layout
\usepackage{geometry}
\geometry{%
  a4paper,%
  top=2.5cm,%
  bottom=2.5cm,%
  left=2.5cm,%
  right=2.5cm%
}
\tolerance=750
\hfuzz=15pt
\hbadness=750
\setlength{\emergencystretch}{15pt}
\setlength{\parindent}{0cm}
\setlength{\parskip}{0.2cm}
\makeatletter
\renewcommand{\paragraph}{%
  \@startsection{paragraph}{4}{0ex}{-1.0ex}{1.0ex}{%
    \normalfont\normalsize\bfseries\SS@parafont%
  }%
}
\renewcommand{\subparagraph}{%
  \@startsection{subparagraph}{5}{0ex}{-1.0ex}{1.0ex}{%
    \normalfont\normalsize\bfseries\SS@subparafont%
  }%
}
\makeatother

% Headers & footers
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\fancyhead[LE]{\fancyplain{}{\bfseries\thepage}}
\fancyhead[CE]{\fancyplain{}{}}
\fancyhead[RE]{\fancyplain{}{\bfseries\leftmark}}
\fancyhead[LO]{\fancyplain{}{\bfseries\rightmark}}
\fancyhead[CO]{\fancyplain{}{}}
\fancyhead[RO]{\fancyplain{}{\bfseries\thepage}}
\fancyfoot[LE]{\fancyplain{}{}}
\fancyfoot[CE]{\fancyplain{}{}}
\fancyfoot[RE]{\fancyplain{}{\bfseries\scriptsize Generated on Wed Sep 16 2015 12\+:17\+:00 by Doxygen }}
\fancyfoot[LO]{\fancyplain{}{\bfseries\scriptsize Generated on Wed Sep 16 2015 12\+:17\+:00 by Doxygen }}
\fancyfoot[CO]{\fancyplain{}{}}
\fancyfoot[RO]{\fancyplain{}{}}
\renewcommand{\footrulewidth}{0.4pt}
\renewcommand{\chaptermark}[1]{%
  \markboth{#1}{}%
}
\renewcommand{\sectionmark}[1]{%
  \markright{\thesection\ #1}%
}

% Indices & bibliography
\usepackage{natbib}
\usepackage[titles]{tocloft}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{5}
\makeindex

% Hyperlinks (required, but should be loaded last)
\usepackage{ifpdf}
\ifpdf
  \usepackage[pdftex,pagebackref=true]{hyperref}
\else
  \usepackage[ps2pdf,pagebackref=true]{hyperref}
\fi
\hypersetup{%
  colorlinks=true,%
  linkcolor=blue,%
  citecolor=blue,%
  unicode%
}

% Custom commands
\newcommand{\clearemptydoublepage}{%
  \newpage{\pagestyle{empty}\cleardoublepage}%
}


%===== C O N T E N T S =====

\begin{document}

% Titlepage & ToC
\hypersetup{pageanchor=false,
             bookmarks=true,
             bookmarksnumbered=true,
             pdfencoding=unicode
            }
\pagenumbering{roman}
\begin{titlepage}
\vspace*{7cm}
\begin{center}%
{\Large Reference Manual}\\
\vspace*{1cm}
{\large Generated by Doxygen 1.8.10}\\
\vspace*{0.5cm}
{\small Wed Sep 16 2015 12:17:00}\\
\end{center}
\end{titlepage}
\clearemptydoublepage
\tableofcontents
\clearemptydoublepage
\pagenumbering{arabic}
\hypersetup{pageanchor=true}

%--- Begin generated contents ---
\chapter{Main Page}
\label{index}\hypertarget{index}{}\input{index}
\chapter{mainpage}
\label{md_docs_mainpage}
\hypertarget{md_docs_mainpage}{}
\input{d5/d4b/md_docs_mainpage}
\chapter{R\+E\+A\+D\+M\+E}
\label{md__r_e_a_d_m_e}
\hypertarget{md__r_e_a_d_m_e}{}
\input{d3/dcc/md__r_e_a_d_m_e}
\chapter{Module Index}
\input{modules}
\chapter{Data Structure Index}
\input{annotated}
\chapter{File Index}
\input{files}
\chapter{Module Documentation}
\input{d1/d44/group__config}
\include{de/d29/group___e_e_p_r_o_m___emulation}
\include{d7/dbc/group___h_a_l___c_o_n_f}
\chapter{Data Structure Documentation}
\input{db/d90/structadc__config}
\input{d6/dc1/structapp__configuration}
\input{db/dbf/structcan__status__msg}
\input{da/d9b/structchuck__data}
\input{d1/d77/structchuk__config}
\input{d0/d6a/structfault__data}
\input{d5/d42/structmc__configuration}
\input{d2/df7/structmc__rpm__dep__struct}
\input{d9/dc9/structmc__timer__struct}
\input{db/d02/structmote__state}
\input{d3/d0c/struct_p_a_c_k_e_t___s_t_a_t_e__t}
\input{da/d8f/structppm__config}
\input{da/d3e/struct_s_e_r_v_o}
\chapter{File Documentation}
\input{df/d7f/app_8c}
\input{d2/d39/app_8h}
\input{d8/de4/app__adc_8c}
\input{d8/d22/app__gurgalof_8c}
\input{d0/d5a/app__nunchuk_8c}
\input{de/df1/app__ppm_8c}
\input{da/dca/app__sten_8c}
\input{db/db0/app__uartcomm_8c}
\input{d3/d8b/buffer_8c}
\input{d5/d08/buffer_8h}
\input{dd/de6/chconf_8h}
\input{d0/da2/comm__can_8c}
\input{d9/d2a/comm__can_8h}
\input{dc/d41/comm__usb_8c}
\input{de/de4/comm__usb_8h}
\input{de/d21/commands_8c}
\input{d5/d90/commands_8h}
\input{d1/df9/conf__general_8c}
\input{df/df4/conf__general_8h}
\input{d8/d13/crc_8c}
\input{dc/de6/crc_8h}
\input{dc/d51/datatypes_8h}
\input{d2/d24/digital__filter_8c}
\input{d4/dc2/digital__filter_8h}
\input{dc/dc6/mainpage_8md}
\input{df/d83/eeprom_8c}
\input{d0/ded/eeprom_8h}
\input{d2/dbf/encoder_8c}
\input{d1/d79/encoder_8h}
\input{da/d72/flash__helper_8c}
\input{d4/d1b/flash__helper_8h}
\input{d2/d35/halconf_8h}
\input{db/dae/hw_8h}
\input{d3/d97/hw__40_8c}
\input{d9/da3/hw__40_8h}
\input{d4/d84/hw__45_8c}
\input{d9/d67/hw__45_8h}
\input{d4/df9/hw__46_8c}
\input{d9/d89/hw__46_8h}
\input{d3/d2c/hw__r2_8c}
\input{d0/d5e/hw__r2_8h}
\input{d1/d33/hw__victor__r1a_8c}
\input{d9/d16/hw__victor__r1a_8h}
\input{d8/daa/irq__handlers_8c}
\input{d1/d47/led__external_8c}
\input{d6/d83/led__external_8h}
\input{d8/dab/ledpwm_8c}
\input{dc/db6/ledpwm_8h}
\input{d0/d29/main_8c}
\input{d4/dbf/main_8h}
\input{d4/dc7/mcconf__outrunner2_8h}
\input{d1/dbf/mcconf__sten_8h}
\input{d4/d98/mcpwm_8c}
\input{d4/d38/mcpwm_8h}
\input{d6/d97/mcuconf_8h}
\input{d0/d51/my_u_s_b_8c}
\input{df/d2c/my_u_s_b_8h}
\input{d2/df5/nrf__driver_8c}
\input{d0/d6d/nrf__driver_8h}
\input{d3/d02/rf_8c}
\input{df/db2/rf_8h}
\input{d7/db9/rfhelp_8c}
\input{de/da9/rfhelp_8h}
\input{dc/d4a/spi__sw_8c}
\input{d4/d2b/spi__sw_8h}
\input{de/df3/packet_8c}
\input{d3/d76/packet_8h}
\input{d9/dd6/_r_e_a_d_m_e_8md}
\input{dc/d4b/servo_8c}
\input{de/d09/servo_8h}
\input{d2/d9f/servo__dec_8c}
\input{d2/d77/servo__dec_8h}
\input{d7/d67/servo__simple_8c}
\input{d2/d37/servo__simple_8h}
\input{d3/d26/stm32f4xx__conf_8h}
\input{d2/d44/terminal_8c}
\input{dc/dbe/terminal_8h}
\input{d7/d4c/timeout_8c}
\input{df/deb/timeout_8h}
\input{d5/dea/usbdescriptor_8h}
\input{d3/d91/utils_8c}
\input{d5/d60/utils_8h}
\input{d2/d45/ws2811_8c}
\input{da/d84/ws2811_8h}
%--- End generated contents ---

% Index
\backmatter
\newpage
\phantomsection
\clearemptydoublepage
\addcontentsline{toc}{chapter}{Index}
\printindex

\end{document}
